#ifndef INCLUDE_OS_PTR
#define INCLUDE_OS_PTR

#include <iostream>
#include "pool.h"
#include "SafePtr.h"

using namespace std;

#define SafePtrLibraryNewDeleteMacro(C)\
void* operator new(size_t size) throw() {\
    if(size!=0) {\
        void* ans = myPool.requestMem(size);\
        return (char*)ans;\
     }\
     else\
        return NULL;\
}\
/*
void* operator new[](size_t size, pool& Pool) {\
    if(size!=0) {\
        void* ans = Pool.requestMem(size);\
		return (char*)ans;\
	}\
	else\
		return NULL;\
}\
*/

#endif
